package com.yuan.yblog.common.exception;

import com.yuan.yblog.common.api.ResultCode;

/**
 * 断言类，用于抛出异常
 */
public class Asserts {

    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(ResultCode resultCode) {
        throw new ApiException(resultCode);
    }
}


